﻿using System.Windows.Controls;

namespace ISMv1.Controls
{

    public partial class ButtonBar : UserControl
    {
        private MainWindow mainWindow { get; set; }

        public ButtonBar(MainWindow parentWindow)
        {
            InitializeComponent();
            mainWindow = parentWindow;
        }

        private void btn_AddIdea_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            mainWindow.ShowAddIdeaDialog();
        }

        private void btn_Save_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            mainWindow.SaveAll();
        }

        private void btn_Open_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            mainWindow.OpenSession();
        }

        private void btn_AddParticipant_Click(object sender, System.Windows.RoutedEventArgs e)
        {

        }
    }
}
